﻿/**
* File: XmglxmxxkpEditModel.cs
* Author: 汪杰
* Create Time:2025/2/28 15:48:55
* Email:15200358008@139.com
* 代码由TMCodeGenerator自动生成
**/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using JSLCloud.Attributes;
using JSLCloud.Models;
using JSLCloud.DBModel;

namespace JSLCloud.App.Models.Xmglxmxxkp
{
    /// <summary>
    /// xm_gl_xmxxkp Edit Model
    /// </summary>
    [UseAutoMapper(typeof(XmglxmxxkpDbModel))]
    public class XmglxmxxkpEditModel
    {
        /// <summary>
        /// ID
        /// </summary>
        [Required]
        public int ID { get; set; }
        
        /// <summary>
        /// 修改人ID
        /// </summary>
        public int? Updateid { get; set; }
        
        /// <summary>
        /// 修改人姓名
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Updatename { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? Updatetime { get; set; } 
        
        /// <summary>
        /// 开票日期
        /// </summary>
        public DateTime? Kprq { get; set; }
        
        /// <summary>
        /// 实开金额
        /// </summary>
        [RegularExpression(pattern: "^(-)?\\d{1,16}(\\.\\d{1,2})?$", ErrorMessage = "整数位须小于等于16位，小数位须小于等于2位")]
        public decimal? Skje { get; set; }
        
        /// <summary>
        /// 开票状态
        /// </summary>
        [Required]
        [StringLength(maximumLength:1)]
        public string Kpzt { get; set; }
        
        /// <summary>
        /// 开票人
        /// </summary>
        [StringLength(maximumLength:20)]
        public string Kpr { get; set; }
        
        /// <summary>
        /// 发票号
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Fph { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Bz { get; set; }
    }
}
